class CreatePhieuNhaps < ActiveRecord::Migration
  def up
    create_table :phieu_nhaps do |t|
      t.references  :TaiSan, :null => false
      t.references  :NhanVien, :null => false
      t.date        :NgayNhap, :null => false
      t.references  :NhaCungCap
      #t.integer     :TrangThai
      t.integer     :SoLuong

      t.timestamps
    end

  end

  def down
    drop_table :phieu_nhaps
  end
end
